fr = open("D:/桌面文件/xiaofei.csv","r")
ls = []
for line in fr:
    line=line.replace("\n",'')
    ls.append(line.split(','))
#print(ls)

flag= input('请输入你要查询的城市和项目并用空格隔开：')
flag1=flag.split(' ')
for i in range(len(ls)):
    if flag1[0] == ls[i][0]:
        
        print('你输入的城市是：'+ls[i][0])
        
        for j in range(1,len(flag1)):
            for k in range(1,9):
               if flag1[j] == ls[0][k]:
                   print(flag1[j]+':'+ls[i][k])
        break          
    else :
        print("输入错误或者你查询的城市不存在！")  
fr.close()